/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ADPViolation.Model;

/**
 *
 * @author Leo
 */
public class Square extends Rectangle {
    
 
    
    public Square(){}
   
    @Override
    public void setlength(int l) {
    this.length =l;
    }

    @Override
    public int getlength() {
       return this.length;
    }

    @Override
    public void setbreadth(int b) {
        this.breadth = b;
    }

    @Override
    public int getbreadth() {
        return this.breadth;
    }
    @Override
    public int area(int l, int b) {
      
        area= l* b;
        return area;
    }
}
